(function(vc) {
    vc.extends({
        data: {
            propertyIndexInfo: {
                storeTypeCd: '', 
                pages: [{
                    name: '业务受理',
                    url: '/#/pages/property/simplifyAcceptance?tab=业务受理',
                    icon: '/img/app.png'
                }, {
                    name: '业主账户',
                    url: '/#/pages/property/accountManage?tab=业主账户',
                    icon: '/img/api.png'
                }, {
                    name: '房屋管理',
                    url: '/#/pages/property/room?tab=房屋管理',
                    icon: '/img/register.png'
                }, {
                    name: '商铺管理',
                    url: '/#/pages/property/shops?tab=商铺管理',
                    icon: '/img/menu.png'
                }, {
                    name: '业主信息',
                    url: '/#/pages/property/listOwner?tab=业主信息',
                    icon: '/img/config.png'
                }, {
                    name: '水电抄表',
                    url: '/#/pages/property/meterWaterManage?tab=水电抄表',
                    icon: '/img/cache.png'
                }],
            }
        },
        _initMethod: function() {
            setTimeout(function(){
                $that._computeStoreTypeCd();
                
            },1000)
        },
        _initEvent: function() {
            
        },
        methods: {
            _computeStoreTypeCd:function(){
                let _getUserInfo = vc.getData('/nav/getUserInfo')
                if(_getUserInfo){
                    $that.propertyIndexInfo.storeTypeCd = _getUserInfo.storeTypeCd
                }

                if($that.propertyIndexInfo.storeTypeCd == '800900000003'){
                    vc.emit('indexCommunityView','initData',{});
                    vc.emit('indexNotice','initData',{});
                    vc.emit('indexRepairComplaint','initData',{});
                    vc.emit('indexOwnerRoom','initData',{});
                }

                if($that.propertyIndexInfo.storeTypeCd == '800900000001'){
                    vc.emit('adminIndex', 'initData',{})
                }

                if($that.propertyIndexInfo.storeTypeCd == '800900000000'){
                    vc.emit('devIndex', 'initData',{})
                }
                
            }  
            ,newFlow: function(item) {
                vc.jumpToPage(item.url);
            },
        }
    })
})(window.vc);